/**
 * Copyright (C), 2020, 安徽贝慕信息科技有限公司
 * FileName: BackendApiDeleteQuery
 * Author:   Allen
 * Date:     2020/8/12
 * Description: 开放后端API信息删除入参
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bim.marvel.openapi.client.query;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 〈开放后端API信息删除入参〉
 *  因涉及redis信息的维护，故而让前端多传两个参数，以减少后端的查询操作
 * @author Allen
 * @date 2020/8/12
 * @since 1.0.0
 */
@Data
public class BackendApiDeleteQuery implements Serializable {

    /**
     * id
     */
    @ApiParam(value = "id主键", name = "id", example = "1", required = true)
    @NotNull
    private Long id;

    /**
     * 服务ID
     */
    @ApiParam(value = "资源服务ID", name = "serviceId", example = "marvel-order", required = true)
    @NotNull
    private String serviceId;
    /**
     * 路径(使用模式匹配)，例如/foo/*
     */
    @ApiParam(value = "请求路径", name = "path", example = "/marvel/get/user/id", required = true)
    @NotNull
    private String path;

}
